<script setup lang="ts">
import { useAuthStore } from '../utils/store';
import { useRouter } from 'vue-router';
import Menu from '../components/home/Menu.vue';
import Header from '../components/header/Header.vue';


const router = useRouter();
const authStore = useAuthStore();

function logout() {
  authStore.removeToken();
  router.push({ path: '/login' });
}


</script>

<template>
  <el-container class="outside">
    <el-header class="header">
        <Header/>
    </el-header>
    <el-container class="outside">
      <el-aside>
        <Menu/>
      </el-aside>
      <el-main class="main"></el-main>
    </el-container>
  </el-container>
</template>

<style scoped>
.header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}

.main {
  color: #333;
  text-align: center;
}

.outside {
  height: 100vh;
}



</style>